{{>layout/header}}

<div class="d-flex justify-content-center">
	<div>
	
		<h2>Login</h2>
						
		<form id="login-form" action="/login" method="post">
			 <div class="form-group">
			  <label>Username</label>
			  <input type="text" name="username" class="form-control" />
			</div>
			
			<div class="form-group">
			  <label>Password</label>
			  <input type="password" name="password" class="form-control"/>
			</div>
			
			<input type="hidden" name="_csrf" value="{{_csrf.token}}" />
			
			<div class="form-group">
				<button type="submit" class="btn btn-primary">Sign In</button>
			</div>
			
		</form>
		
	</div>
</div>

{{>layout/footer}}
		
{{#error}}
	<script>
		showError("{{.}}");
	</script>	
{{/error}}	